<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <div v-if="num % 2 == 0">div1</div>
      <div v-else-if="num % 4 == 0">div1-1</div>
      <div v-else="num % 5 == 0">div 1 - 2</div>
      <div v-show="num % 2 == 0">div2</div>

      <ul>
        <li v-for=" (n, index) in names" :title="n">{{ n }} + {{index}}</li>
        <li v-for="n in 10">{{ n }}</li>
      </ul>
    </div>

    <script src="../vue3.2.45.js"></script>
    <script>
      const app = Vue.createApp({
        data() {
          return {
            num: 5,
            names: ["喜羊羊", "暖洋洋", "懒洋洋", "美羊羊", "沸羊羊", "慢羊羊"],
          };
        },
        methods: {},
      });

      const vm = app.mount("#app");
    </script>
  </body>
</html>
